home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 1992 August / info-mac-1992.iso / Applications (app) / Earth Plot / ep.eWindow.c < prev    next >
C/C++ Source or Header  |  1987-12-25  |  1KB  |  62 lines

  1. #include "ep.const.h"
  2. #include "ep.extern.h"
  3.  
  4. long    oldBackground    = whiteColor;
  5. long    oldFore            = blackColor;
  6.  
  7. eUpdate (Resized) /************************************************************/
  8. Boolean    Resized;
  9. {
  10.     Rect    tr;
  11.  
  12.     if (Resized) {
  13.         ClipRect(&eWindow->portRect);
  14.         EraseRect(&eWindow->portRect);
  15.     }
  16.     DrawPicture(ebmPict,&eWindow->portRect);
  17.     myDrawGrowIcon();
  18. }
  19.  
  20. eClose() /************************************************************/
  21. {
  22.     SkelWhoa ();
  23. }
  24.  
  25. eClobber() /************************************************************/
  26. {
  27. GrafPtr    thePort;
  28.  
  29.     GetPort (&thePort);                /* grafport of window to dispose*/
  30.     DisposeWindow ((WindowPtr) thePort);
  31. }
  32.  
  33. eActivate() /************************************************************/
  34. {
  35. }
  36.  
  37. eMouse() /************************************************************/
  38. {
  39. }
  40.  
  41. eKey() /************************************************************/
  42. {
  43. }
  44.  
  45. myDrawGrowIcon()
  46. {
  47.     Rect    tr;
  48.  
  49.     tr.bottom = eWindow->portRect.bottom - 2;
  50.     tr.right  = eWindow->portRect.right  - 2;
  51.     tr.top    = eWindow->portRect.bottom - 11;
  52.     tr.left   = eWindow->portRect.right  - 11;
  53.  
  54.     BackColor(oldBackground);
  55.     ForeColor(oldFore);
  56.     FrameRect(&tr);
  57.     
  58.     OffsetRect(&tr,-3,-3);
  59.     InsetRect (&tr, 1, 1);
  60.     EraseRect(&tr);
  61.     FrameRect(&tr);
  62. }